package com.zy.scwproject.service;

import com.zy.scwcommon.bean.AppResponse;
import com.zy.scwcommon.entity.TMember;
import com.zy.scwproject.service.exp.TMemberServiceFeignsExceptionHandler;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value="SCW-USER",fallback= TMemberServiceFeignsExceptionHandler.class)
public interface TMemberServiceFeigns {

@GetMapping("/user/info/selectById")
public AppResponse<TMember>  selectById(@RequestParam("id") Integer id);

}



